/*******************************************************************************
File: master
Project: CPKIN 
Purpose: This master .do file allows for a single-click replication of all analyses
Author: Akshay Dixit
Date Created: July 2, 2020
********************************************************************************/

clear all
set more off

***THIS IS THE INPUT THAT MUST BE CHANGED SPECIFIC TO THE USER***
*gl identity ""
*gl user "" 
	   
********************************************************************************

***Creating Global File Paths***'
gl data "$user/data"
gl dof "$user/do files"
gl analysis "$user/analysis"

********************************************************************************

** For a single-click replication, run all do files in the order below from this master file **

do "$dof/0_organize"					//Splits post-treatment CPFP data from other data

do "$dof/1_baseline_social_capital"		//Prepares baseline outcome for subgroup analysis

do "$dof/2_main_outcomes"				//Cleans and analyzes the main outcomes

do "$dof/3_cpfp_involvement"			//Cleans and analyzes data on involvement of CPFPs in child protection activities 

do "$dof/4_other_involvement"			//Cleans and analyzes data on involvement of other actors in child protection activities 

do "$dof/5_child_protection"			//Cleans and analyzes data on child protection outcomes

do "$dof/6_multiple_hypotheses_testing"	//Adjusts TOT p-values for multiple hypotheses testing

do "$dof/7_cpfp_self_involvement"		//Cleans and analyzes CPFP data on involvement of CPFPs in child protection activities 

do "$dof/8_cpfp_other_involvement"		//Cleans and analyzes CPFP data on involvement of other actors in child protection activities 



